package cn.db101.fairy.mapper

import cn.db101.fairy.entity.ChineseCharacter
import com.mybatisflex.core.BaseMapper
import org.apache.ibatis.annotations.Select
import org.springframework.stereotype.Repository

/**
 * @author zooy
 * @since 2024/7/12-18:04
 */
@Repository
interface HzMapper: BaseMapper<ChineseCharacter> {

    @Select("select * from t_chinese_character order by rand() limit 1")
    fun randomOne(): ChineseCharacter

}
